﻿using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.Collections.Generic;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category6
{
  public class MT644 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagSequenceDefinition U0002;
    private static SwiftTagDefinition U0003;
    private static SwiftTagSubItemDefinition U0004;
    private static SwiftTagDefinition U0005;
    private static SwiftTagSubItemDefinition U0006;
    private static SwiftTagDefinition U0007;
    private static SwiftTagSubItemDefinition U0008;
    private static SwiftTagSubItemDefinition U000E;
    private static SwiftTagDefinition U000F;
    private static SwiftTagDefinition U0010;
    private static SwiftTagDefinition U0011;
    private static SwiftTagSubItemDefinition U0012;
    private static SwiftTagDefinition U0013;
    private static SwiftTagSubItemDefinition U0014;
    private static SwiftTagSubItemDefinition U0015;
    private static SwiftTagSubItemDefinition U0016;
    private static SwiftTagSequenceDefinition U0017;
    private static SwiftTagChoiceDefinition U0018;
    private static SwiftTagDefinition U0019;
    private static SwiftTagSubItemDefinition U001A;
    private static SwiftTagSubItemDefinition U001B;
    private static SwiftTagDefinition U001C;
    private static SwiftTagSubItemDefinition U001D;
    private static SwiftTagSubItemDefinition U001E;
    private static SwiftTagDefinition U001F;
    private static SwiftTagSubItemDefinition U007F;
    private static SwiftTagSubItemDefinition U0080;
    private static SwiftTagSubItemDefinition U0081;
    private static SwiftTagSubItemDefinition U0082;
    private static SwiftTagSubItemDefinition U0083;
    private static SwiftTagSubItemDefinition U0084;
    private static SwiftTagDefinition U0086;
    private static SwiftTagSubItemDefinition U0087;
    private static SwiftTagSubItemDefinition U0088;
    private static SwiftTagDefinition U0089;
    private static SwiftTagSubItemDefinition U008A;
    private static SwiftTagDefinition U008B;
    private static SwiftTagSubItemDefinition U008C;
    private static SwiftTagDefinition U008D;
    private static SwiftTagSubItemDefinition U008E;
    private static SwiftTagDefinition U008F;
    private static SwiftTagSubItemDefinition U0090;
    private static SwiftTagChoiceDefinition U0091;
    private static SwiftTagDefinition U0092;
    private static SwiftTagSubItemDefinition U0093;
    private static SwiftTagSubItemDefinition U0094;
    private static SwiftTagSubItemDefinition U0095;
    private static SwiftTagSubItemDefinition U0096;
    private static SwiftTagSubItemDefinition U0097;
    private static SwiftTagDefinition U0098;
    private static SwiftTagSubItemDefinition U0099;
    private static SwiftTagSubItemDefinition U009A;
    private static SwiftTagSubItemDefinition U009B;
    private static SwiftTagSubItemDefinition U009C;
    private static SwiftTagSubItemDefinition U009D;
    private static SwiftTagDefinition U009E;
    private static SwiftTagSubItemDefinition U009F;
    private static SwiftTagSubItemDefinition U0001U0002;
    private static SwiftTagSubItemDefinition U0002U0002;
    private static SwiftTagSubItemDefinition U0003U0002;
    private static SwiftTagSubItemDefinition U0004U0002;
    private static SwiftTagDefinition U0005U0002;
    private static SwiftTagSubItemDefinition U0006U0002;
    private static SwiftTagSubItemDefinition U0007U0002;
    private static SwiftTagSubItemDefinition U0008U0002;
    private static SwiftTagSubItemDefinition U000EU0002;
    private static SwiftTagSubItemDefinition U000FU0002;
    private static SwiftTagDefinition U0010U0002;
    private static SwiftTagSubItemDefinition U0011U0002;
    private static SwiftTagSubItemDefinition U0012U0002;
    private static SwiftTagSubItemDefinition U0013U0002;
    private static SwiftTagSubItemDefinition U0014U0002;
    private static SwiftTagSubItemDefinition U0015U0002;
    private static SwiftTagDefinition U0016U0002;
    private static SwiftTagSubItemDefinition U0017U0002;
    private static SwiftTagSubItemDefinition U0018U0002;
    private static SwiftTagSubItemDefinition U0019U0002;
    private static SwiftTagSubItemDefinition U001AU0002;
    private static SwiftTagSubItemDefinition U001BU0002;
    private static SwiftTagChoiceDefinition U001CU0002;
    private static SwiftTagDefinition U001DU0002;
    private static SwiftTagSubItemDefinition U001EU0002;
    private static SwiftTagSubItemDefinition U001FU0002;
    private static SwiftTagSubItemDefinition U007FU0002;
    private static SwiftTagDefinition U0080U0002;
    private static SwiftTagSubItemDefinition U0081U0002;
    private static SwiftTagSubItemDefinition U0082U0002;
    private static SwiftTagSubItemDefinition U0083U0002;
    private static SwiftTagChoiceDefinition U0084U0002;
    private static SwiftTagDefinition U0086U0002;
    private static SwiftTagSubItemDefinition U0087U0002;
    private static SwiftTagSubItemDefinition U0088U0002;
    private static SwiftTagDefinition U0089U0002;
    private static SwiftTagSubItemDefinition U008AU0002;
    private static SwiftTagSubItemDefinition U008BU0002;
    private static SwiftTagDefinition U008CU0002;
    private static SwiftTagSubItemDefinition U008DU0002;
    private static SwiftTagSubItemDefinition U008EU0002;
    private static SwiftTagDefinition U008FU0002;

    [Description("Identification of the Facility")]
    public MT644.SequenceAClass SequenceA
    {
      get
      {
        return new MT644.SequenceAClass((SwiftElement) this, 0, false);
      }
    }

    [Description("Specification of the Drawing and Related Data")]
    public MT644.SequenceBClass[] SequenceB
    {
      get
      {
        int index = -1;
        List<MT644.SequenceBClass> list = new List<MT644.SequenceBClass>();
        int count;
        do
        {
          ++index;
          MT644.SequenceBClass sequenceBclass = new MT644.SequenceBClass((SwiftElement) this, index, false);
          count = this.ListTags((SwiftElement) sequenceBclass).Count;
          if (count > 0)
            list.Add(sequenceBclass);
        }
        while (count > 0);
        return list.ToArray();
      }
    }

    public MT644()
      : base(true)
    {
    }

    public MT644(SwiftMessage message)
      : base(message)
    {
    }

    public MT644.SequenceBClass AddSequenceB()
    {
      return new MT644.SequenceBClass((SwiftElement) this, this.SequenceB.Length, true);
    }

    public void RemoveSequenceB(MT644.SequenceBClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT644.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT644.MessageDefinition = new SwiftMessageDefinition("MT644", "Advice of Rate and Amount Fixing");
      MT644.U0002 = new SwiftTagSequenceDefinition("SequenceA", "Identification of the Facility");
      MT644.U0003 = new SwiftTagDefinition("TransactionReferenceNumber_A_20", "Transaction Reference Number");
      MT644.U0003.TagName = ":20:";
      MT644.U0004 = new SwiftTagSubItemDefinition("Reference", "Transaction Reference Number");
      MT644.U0003.Elements.Add((SwiftDefinitionElement) MT644.U0004);
      MT644.U0002.Elements.Add((SwiftDefinitionElement) MT644.U0003);
      MT644.U0005 = new SwiftTagDefinition("RelatedReference_A_21", "Related Reference");
      MT644.U0005.TagName = ":21:";
      MT644.U0005.Mandatory = false;
      MT644.U0006 = new SwiftTagSubItemDefinition("Reference", "Related Reference");
      MT644.U0005.Elements.Add((SwiftDefinitionElement) MT644.U0006);
      MT644.U0002.Elements.Add((SwiftDefinitionElement) MT644.U0005);
      MT644.U0007 = new SwiftTagDefinition("SequenceOfTotal_A_27", "Sequence Of Total");
      MT644.U0007.TagName = ":27:";
      MT644.U0007.Mandatory = false;
      MT644.U0008 = new SwiftTagSubItemDefinition("Number", "Number");
      MT644.U0007.Elements.Add((SwiftDefinitionElement) MT644.U0008);
      MT644.U000E = new SwiftTagSubItemDefinition("Total", "Total");
      MT644.U0007.Elements.Add((SwiftDefinitionElement) MT644.U000E);
      MT644.U0002.Elements.Add((SwiftDefinitionElement) MT644.U0007);
      MT644.U000F = new SwiftTagDefinition("From_A_29A", "From");
      MT644.U000F.TagName = ":29A:";
      MT644.U000F.Mandatory = false;
      MT644.U0002.Elements.Add((SwiftDefinitionElement) MT644.U000F);
      MT644.U0010 = new SwiftTagDefinition("ToTheAttentionOf_A_29B", "To The Attention Of");
      MT644.U0010.TagName = ":29B:";
      MT644.U0010.Mandatory = false;
      MT644.U0002.Elements.Add((SwiftDefinitionElement) MT644.U0010);
      MT644.U0011 = new SwiftTagDefinition("Borrowers_A_88D", "Borrower's");
      MT644.U0011.TagName = ":88D:";
      MT644.U0012 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT644.U0011.Elements.Add((SwiftDefinitionElement) MT644.U0012);
      MT644.U0002.Elements.Add((SwiftDefinitionElement) MT644.U0011);
      MT644.U0013 = new SwiftTagDefinition("OriginalFacilityAmount_A_32A", "Original Facility Amount");
      MT644.U0013.TagName = ":32A:";
      MT644.U0014 = new SwiftTagSubItemDefinition("Date", "Date");
      MT644.U0013.Elements.Add((SwiftDefinitionElement) MT644.U0014);
      MT644.U0015 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT644.U0013.Elements.Add((SwiftDefinitionElement) MT644.U0015);
      MT644.U0016 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT644.U0013.Elements.Add((SwiftDefinitionElement) MT644.U0016);
      MT644.U0002.Elements.Add((SwiftDefinitionElement) MT644.U0013);
      MT644.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT644.U0002);
      MT644.U0017 = new SwiftTagSequenceDefinition("SequenceB", "Specification of the Drawing and Related Data");
      MT644.U0017.Multiple = true;
      MT644.U0018 = new SwiftTagChoiceDefinition("Choice", "");
      MT644.U0018.Multiple = true;
      MT644.U0019 = new SwiftTagDefinition("DrawingIdentification_B_26P", "Drawing Identification");
      MT644.U0019.TagName = ":26P:";
      MT644.U001A = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT644.U0019.Elements.Add((SwiftDefinitionElement) MT644.U001A);
      MT644.U001B = new SwiftTagSubItemDefinition("Identification", "Identification");
      MT644.U0019.Elements.Add((SwiftDefinitionElement) MT644.U001B);
      MT644.U0018.Elements.Add((SwiftDefinitionElement) MT644.U0019);
      MT644.U001C = new SwiftTagDefinition("DrawingIdentification_B_26N", "Drawing Identification");
      MT644.U001C.TagName = ":26N:";
      MT644.U001D = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT644.U001C.Elements.Add((SwiftDefinitionElement) MT644.U001D);
      MT644.U001E = new SwiftTagSubItemDefinition("Identification", "Identification");
      MT644.U001C.Elements.Add((SwiftDefinitionElement) MT644.U001E);
      MT644.U0018.Elements.Add((SwiftDefinitionElement) MT644.U001C);
      MT644.U0017.Elements.Add((SwiftDefinitionElement) MT644.U0018);
      MT644.U001F = new SwiftTagDefinition("InterestPeriod_B_31F", "Interest Period");
      MT644.U001F.TagName = ":31F:";
      MT644.U007F = new SwiftTagSubItemDefinition("InterestPeriod", "Interest Period");
      MT644.U0080 = new SwiftTagSubItemDefinition("StartDate", "Start Date");
      MT644.U007F.Elements.Add((SwiftDefinitionElement) MT644.U0080);
      MT644.U0081 = new SwiftTagSubItemDefinition("EndDate", "EndDate");
      MT644.U0081.Mandatory = false;
      MT644.U0082 = new SwiftTagSubItemDefinition("EndDate_1", "End Date");
      MT644.U0081.Elements.Add((SwiftDefinitionElement) MT644.U0082);
      MT644.U007F.Elements.Add((SwiftDefinitionElement) MT644.U0081);
      MT644.U001F.Elements.Add((SwiftDefinitionElement) MT644.U007F);
      MT644.U0083 = new SwiftTagSubItemDefinition("Origin", "End Date And Origin");
      MT644.U0083.Mandatory = false;
      MT644.U0084 = new SwiftTagSubItemDefinition("Origin_1", "Origin");
      MT644.U0084.Mandatory = false;
      MT644.U0083.Elements.Add((SwiftDefinitionElement) MT644.U0084);
      MT644.U001F.Elements.Add((SwiftDefinitionElement) MT644.U0083);
      MT644.U0017.Elements.Add((SwiftDefinitionElement) MT644.U001F);
      MT644.U0086 = new SwiftTagDefinition("ReceiversParticipation_B_33B", "ReceiversParticipation_B_33B");
      MT644.U0086.TagName = ":33B:";
      MT644.U0086.Mandatory = false;
      MT644.U0087 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT644.U0086.Elements.Add((SwiftDefinitionElement) MT644.U0087);
      MT644.U0088 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT644.U0086.Elements.Add((SwiftDefinitionElement) MT644.U0088);
      MT644.U0017.Elements.Add((SwiftDefinitionElement) MT644.U0086);
      MT644.U0089 = new SwiftTagDefinition("ExchangeRate_B_36", "Exchange Rate");
      MT644.U0089.TagName = ":36:";
      MT644.U0089.Mandatory = false;
      MT644.U008A = new SwiftTagSubItemDefinition("Rate", "Rate");
      MT644.U0089.Elements.Add((SwiftDefinitionElement) MT644.U008A);
      MT644.U0017.Elements.Add((SwiftDefinitionElement) MT644.U0089);
      MT644.U008B = new SwiftTagDefinition("BasisRate_B_37G", "Basis Rate");
      MT644.U008B.TagName = ":37G:";
      MT644.U008C = new SwiftTagSubItemDefinition("SignRate", "Sign Rate");
      MT644.U008B.Elements.Add((SwiftDefinitionElement) MT644.U008C);
      MT644.U0017.Elements.Add((SwiftDefinitionElement) MT644.U008B);
      MT644.U008D = new SwiftTagDefinition("InterestMargin_B_37M", "Interest Margin");
      MT644.U008D.TagName = ":37M:";
      MT644.U008D.Mandatory = false;
      MT644.U008E = new SwiftTagSubItemDefinition("SignMargin", "Sign Margin");
      MT644.U008D.Elements.Add((SwiftDefinitionElement) MT644.U008E);
      MT644.U0017.Elements.Add((SwiftDefinitionElement) MT644.U008D);
      MT644.U008F = new SwiftTagDefinition("ReserveInterest_B_37R", "Reserve Interest");
      MT644.U008F.TagName = ":37R:";
      MT644.U008F.Mandatory = false;
      MT644.U0090 = new SwiftTagSubItemDefinition("SignInterest", "Sign Interest");
      MT644.U008F.Elements.Add((SwiftDefinitionElement) MT644.U0090);
      MT644.U0017.Elements.Add((SwiftDefinitionElement) MT644.U008F);
      MT644.U0091 = new SwiftTagChoiceDefinition("Choice", "");
      MT644.U0091.Mandatory = false;
      MT644.U0091.Multiple = true;
      MT644.U0092 = new SwiftTagDefinition("TotalInterestRate_B_37A", "Total Interest Rate");
      MT644.U0092.TagName = ":37A:";
      MT644.U0093 = new SwiftTagSubItemDefinition("InterestRate", "Interest Rate");
      MT644.U0092.Elements.Add((SwiftDefinitionElement) MT644.U0093);
      MT644.U0094 = new SwiftTagSubItemDefinition("TotalInterestRate", "End date,Period And Number");
      MT644.U0094.Mandatory = false;
      MT644.U0095 = new SwiftTagSubItemDefinition("TotalInterestRate_1", "End date,Period And Number");
      MT644.U0094.Elements.Add((SwiftDefinitionElement) MT644.U0095);
      MT644.U0092.Elements.Add((SwiftDefinitionElement) MT644.U0094);
      MT644.U0096 = new SwiftTagSubItemDefinition("Information", "Information");
      MT644.U0096.Mandatory = false;
      MT644.U0097 = new SwiftTagSubItemDefinition("Information_1", "Information");
      MT644.U0096.Elements.Add((SwiftDefinitionElement) MT644.U0097);
      MT644.U0092.Elements.Add((SwiftDefinitionElement) MT644.U0096);
      MT644.U0091.Elements.Add((SwiftDefinitionElement) MT644.U0092);
      MT644.U0098 = new SwiftTagDefinition("TotalInterestRate_B_37B", "Total Interest Rate");
      MT644.U0098.TagName = ":37B:";
      MT644.U0099 = new SwiftTagSubItemDefinition("InterestRate", "Interest Rate");
      MT644.U0098.Elements.Add((SwiftDefinitionElement) MT644.U0099);
      MT644.U009A = new SwiftTagSubItemDefinition("TotalInterestRate", "End date,Period And Number");
      MT644.U009A.Mandatory = false;
      MT644.U009B = new SwiftTagSubItemDefinition("TotalInterestRate_1", "End date,Period And Number");
      MT644.U009A.Elements.Add((SwiftDefinitionElement) MT644.U009B);
      MT644.U0098.Elements.Add((SwiftDefinitionElement) MT644.U009A);
      MT644.U009C = new SwiftTagSubItemDefinition("Information", "Information");
      MT644.U009C.Mandatory = false;
      MT644.U009D = new SwiftTagSubItemDefinition("Information_1", "Information");
      MT644.U009C.Elements.Add((SwiftDefinitionElement) MT644.U009D);
      MT644.U0098.Elements.Add((SwiftDefinitionElement) MT644.U009C);
      MT644.U0091.Elements.Add((SwiftDefinitionElement) MT644.U0098);
      MT644.U009E = new SwiftTagDefinition("TotalInterestRate_B_37C", "Total Interest Rate");
      MT644.U009E.TagName = ":37C:";
      MT644.U009F = new SwiftTagSubItemDefinition("InterestRate", "Interest Rate");
      MT644.U009E.Elements.Add((SwiftDefinitionElement) MT644.U009F);
      MT644.U0001U0002 = new SwiftTagSubItemDefinition("TotalInterestRate", "End date,Period And Number");
      MT644.U0001U0002.Mandatory = false;
      MT644.U0002U0002 = new SwiftTagSubItemDefinition("TotalInterestRate_1", "End date,Period And Number");
      MT644.U0001U0002.Elements.Add((SwiftDefinitionElement) MT644.U0002U0002);
      MT644.U009E.Elements.Add((SwiftDefinitionElement) MT644.U0001U0002);
      MT644.U0003U0002 = new SwiftTagSubItemDefinition("Information", "Information");
      MT644.U0003U0002.Mandatory = false;
      MT644.U0004U0002 = new SwiftTagSubItemDefinition("Information_1", "Information");
      MT644.U0003U0002.Elements.Add((SwiftDefinitionElement) MT644.U0004U0002);
      MT644.U009E.Elements.Add((SwiftDefinitionElement) MT644.U0003U0002);
      MT644.U0091.Elements.Add((SwiftDefinitionElement) MT644.U009E);
      MT644.U0005U0002 = new SwiftTagDefinition("TotalInterestRate_B_37D", "Total Interest Rate");
      MT644.U0005U0002.TagName = ":37D:";
      MT644.U0006U0002 = new SwiftTagSubItemDefinition("InterestRate", "Interest Rate");
      MT644.U0005U0002.Elements.Add((SwiftDefinitionElement) MT644.U0006U0002);
      MT644.U0007U0002 = new SwiftTagSubItemDefinition("TotalInterestRate", "End date,Period And Number");
      MT644.U0007U0002.Mandatory = false;
      MT644.U0008U0002 = new SwiftTagSubItemDefinition("TotalInterestRate_1", "End date,Period And Number");
      MT644.U0007U0002.Elements.Add((SwiftDefinitionElement) MT644.U0008U0002);
      MT644.U0005U0002.Elements.Add((SwiftDefinitionElement) MT644.U0007U0002);
      MT644.U000EU0002 = new SwiftTagSubItemDefinition("Information", "Information");
      MT644.U000EU0002.Mandatory = false;
      MT644.U000FU0002 = new SwiftTagSubItemDefinition("Information_1", "Information");
      MT644.U000EU0002.Elements.Add((SwiftDefinitionElement) MT644.U000FU0002);
      MT644.U0005U0002.Elements.Add((SwiftDefinitionElement) MT644.U000EU0002);
      MT644.U0091.Elements.Add((SwiftDefinitionElement) MT644.U0005U0002);
      MT644.U0010U0002 = new SwiftTagDefinition("TotalInterestRate_B_37E", "Total Interest Rate");
      MT644.U0010U0002.TagName = ":37E:";
      MT644.U0011U0002 = new SwiftTagSubItemDefinition("InterestRate", "Interest Rate");
      MT644.U0010U0002.Elements.Add((SwiftDefinitionElement) MT644.U0011U0002);
      MT644.U0012U0002 = new SwiftTagSubItemDefinition("TotalInterestRate", "End date,Period And Number");
      MT644.U0012U0002.Mandatory = false;
      MT644.U0013U0002 = new SwiftTagSubItemDefinition("TotalInterestRate_1", "End date,Period And Number");
      MT644.U0012U0002.Elements.Add((SwiftDefinitionElement) MT644.U0013U0002);
      MT644.U0010U0002.Elements.Add((SwiftDefinitionElement) MT644.U0012U0002);
      MT644.U0014U0002 = new SwiftTagSubItemDefinition("Information", "Information");
      MT644.U0014U0002.Mandatory = false;
      MT644.U0015U0002 = new SwiftTagSubItemDefinition("Information_1", "Information");
      MT644.U0014U0002.Elements.Add((SwiftDefinitionElement) MT644.U0015U0002);
      MT644.U0010U0002.Elements.Add((SwiftDefinitionElement) MT644.U0014U0002);
      MT644.U0091.Elements.Add((SwiftDefinitionElement) MT644.U0010U0002);
      MT644.U0016U0002 = new SwiftTagDefinition("TotalInterestRate_B_37F", "Total Interest Rate");
      MT644.U0016U0002.TagName = ":37F:";
      MT644.U0017U0002 = new SwiftTagSubItemDefinition("InterestRate", "Interest Rate");
      MT644.U0016U0002.Elements.Add((SwiftDefinitionElement) MT644.U0017U0002);
      MT644.U0018U0002 = new SwiftTagSubItemDefinition("TotalInterestRate", "End date,Period And Number");
      MT644.U0018U0002.Mandatory = false;
      MT644.U0019U0002 = new SwiftTagSubItemDefinition("TotalInterestRate_1", "End date,Period And Number");
      MT644.U0018U0002.Elements.Add((SwiftDefinitionElement) MT644.U0019U0002);
      MT644.U0016U0002.Elements.Add((SwiftDefinitionElement) MT644.U0018U0002);
      MT644.U001AU0002 = new SwiftTagSubItemDefinition("Information", "Information");
      MT644.U001AU0002.Mandatory = false;
      MT644.U001BU0002 = new SwiftTagSubItemDefinition("Information_1", "Information");
      MT644.U001AU0002.Elements.Add((SwiftDefinitionElement) MT644.U001BU0002);
      MT644.U0016U0002.Elements.Add((SwiftDefinitionElement) MT644.U001AU0002);
      MT644.U0091.Elements.Add((SwiftDefinitionElement) MT644.U0016U0002);
      MT644.U0017.Elements.Add((SwiftDefinitionElement) MT644.U0091);
      MT644.U001CU0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT644.U001CU0002.Mandatory = false;
      MT644.U001CU0002.Multiple = true;
      MT644.U001DU0002 = new SwiftTagDefinition("DifferentialAmount_B_34P", "Differential Amount");
      MT644.U001DU0002.TagName = ":34P:";
      MT644.U001EU0002 = new SwiftTagSubItemDefinition("Date", "Date");
      MT644.U001DU0002.Elements.Add((SwiftDefinitionElement) MT644.U001EU0002);
      MT644.U001FU0002 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT644.U001DU0002.Elements.Add((SwiftDefinitionElement) MT644.U001FU0002);
      MT644.U007FU0002 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT644.U001DU0002.Elements.Add((SwiftDefinitionElement) MT644.U007FU0002);
      MT644.U001CU0002.Elements.Add((SwiftDefinitionElement) MT644.U001DU0002);
      MT644.U0080U0002 = new SwiftTagDefinition("DifferentialAmount_B_34R", "Differential Amount");
      MT644.U0080U0002.TagName = ":34R:";
      MT644.U0081U0002 = new SwiftTagSubItemDefinition("Date", "Date");
      MT644.U0080U0002.Elements.Add((SwiftDefinitionElement) MT644.U0081U0002);
      MT644.U0082U0002 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT644.U0080U0002.Elements.Add((SwiftDefinitionElement) MT644.U0082U0002);
      MT644.U0083U0002 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT644.U0080U0002.Elements.Add((SwiftDefinitionElement) MT644.U0083U0002);
      MT644.U001CU0002.Elements.Add((SwiftDefinitionElement) MT644.U0080U0002);
      MT644.U0017.Elements.Add((SwiftDefinitionElement) MT644.U001CU0002);
      MT644.U0084U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT644.U0084U0002.Mandatory = false;
      MT644.U0084U0002.Multiple = true;
      MT644.U0086U0002 = new SwiftTagDefinition("AccountWithInstitution_B_57A", "Account With Institution");
      MT644.U0086U0002.TagName = ":57A:";
      MT644.U0087U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT644.U0087U0002.Mandatory = false;
      MT644.U0086U0002.Elements.Add((SwiftDefinitionElement) MT644.U0087U0002);
      MT644.U0088U0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT644.U0086U0002.Elements.Add((SwiftDefinitionElement) MT644.U0088U0002);
      MT644.U0084U0002.Elements.Add((SwiftDefinitionElement) MT644.U0086U0002);
      MT644.U0089U0002 = new SwiftTagDefinition("AccountWithInstitution_B_57B", "Account With Institution");
      MT644.U0089U0002.TagName = ":57B:";
      MT644.U008AU0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT644.U008AU0002.Mandatory = false;
      MT644.U0089U0002.Elements.Add((SwiftDefinitionElement) MT644.U008AU0002);
      MT644.U008BU0002 = new SwiftTagSubItemDefinition("Location", "Location");
      MT644.U008BU0002.Mandatory = false;
      MT644.U0089U0002.Elements.Add((SwiftDefinitionElement) MT644.U008BU0002);
      MT644.U0084U0002.Elements.Add((SwiftDefinitionElement) MT644.U0089U0002);
      MT644.U008CU0002 = new SwiftTagDefinition("AccountWithInstitution_B_57D", "Account With Institution");
      MT644.U008CU0002.TagName = ":57D:";
      MT644.U008DU0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT644.U008DU0002.Mandatory = false;
      MT644.U008CU0002.Elements.Add((SwiftDefinitionElement) MT644.U008DU0002);
      MT644.U008EU0002 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT644.U008CU0002.Elements.Add((SwiftDefinitionElement) MT644.U008EU0002);
      MT644.U0084U0002.Elements.Add((SwiftDefinitionElement) MT644.U008CU0002);
      MT644.U0017.Elements.Add((SwiftDefinitionElement) MT644.U0084U0002);
      MT644.U008FU0002 = new SwiftTagDefinition("SenderToRecieverInformation_B_72", "Sender To Receiver Information");
      MT644.U008FU0002.TagName = ":72:";
      MT644.U008FU0002.Mandatory = false;
      MT644.U0017.Elements.Add((SwiftDefinitionElement) MT644.U008FU0002);
      MT644.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT644.U0017);
    }

    public class SequenceAClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT644.U0002;
        }
      }

      [Description("Transaction Reference Number")]
      public Tag20 TransactionReferenceNumber_A_20
      {
        get
        {
          return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U0003);
        }
      }

      [Description("Transaction Reference Number")]
      public Tag20 Tag20_TransactionReferenceNumber_A
      {
        get
        {
          return this.TransactionReferenceNumber_A_20;
        }
      }

      [Description("Related Reference")]
      public Tag21 RelatedReference_A_21
      {
        get
        {
          return new Tag21((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U0005);
        }
      }

      [Description("Related Reference")]
      public Tag21 Tag21_RelatedReference_A
      {
        get
        {
          return this.RelatedReference_A_21;
        }
      }

      [Description("Sequence Of Total")]
      public Tag27 SequenceOfTotal_A_27
      {
        get
        {
          return new Tag27((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U0007);
        }
      }

      [Description("Sequence Of Total")]
      public Tag27 Tag27_SequenceOfTotal_A
      {
        get
        {
          return this.SequenceOfTotal_A_27;
        }
      }

      [Description("From")]
      public Tag29A From_A_29A
      {
        get
        {
          return new Tag29A((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U000F);
        }
      }

      [Description("From")]
      public Tag29A Tag29A_From_A
      {
        get
        {
          return this.From_A_29A;
        }
      }

      [Description("To The Attention Of")]
      public Tag29B ToTheAttentionOf_A_29B
      {
        get
        {
          return new Tag29B((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U0010);
        }
      }

      [Description("To The Attention Of")]
      public Tag29B Tag29B_ToTheAttentionOf_A
      {
        get
        {
          return this.ToTheAttentionOf_A_29B;
        }
      }

      [Description("Borrower's")]
      public MT644.SequenceAClass.Tag88D Borrowers_A_88D
      {
        get
        {
          return new MT644.SequenceAClass.Tag88D((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U0011);
        }
      }

      [Description("Borrower's")]
      public MT644.SequenceAClass.Tag88D Tag88D_Borrowers_A
      {
        get
        {
          return this.Borrowers_A_88D;
        }
      }

      [Description("Original Facility Amount")]
      public Tag32A OriginalFacilityAmount_A_32A
      {
        get
        {
          return new Tag32A((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U0013);
        }
      }

      [Description("Original Facility Amount")]
      public Tag32A Tag32A_OriginalFacilityAmount_A
      {
        get
        {
          return this.OriginalFacilityAmount_A_32A;
        }
      }

      internal SequenceAClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public class Tag88D : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("88D", value);
          }
        }

        internal Tag88D(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }
    }

    public class SequenceBClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT644.U0017;
        }
      }

      [Description("Drawing Identification")]
      public Tag26P DrawingIdentification_B_26P
      {
        get
        {
          return new Tag26P((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U0019);
        }
      }

      [Description("Drawing Identification")]
      public Tag26P Tag26P_DrawingIdentification_B
      {
        get
        {
          return this.DrawingIdentification_B_26P;
        }
      }

      [Description("Drawing Identification")]
      public Tag26N DrawingIdentification_B_26N
      {
        get
        {
          return new Tag26N((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U001C);
        }
      }

      [Description("Drawing Identification")]
      public Tag26N Tag26N_DrawingIdentification_B
      {
        get
        {
          return this.DrawingIdentification_B_26N;
        }
      }

      [Description("Interest Period")]
      public MT644.SequenceBClass.Tag31F InterestPeriod_B_31F
      {
        get
        {
          return new MT644.SequenceBClass.Tag31F((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U001F);
        }
      }

      [Description("Interest Period")]
      public MT644.SequenceBClass.Tag31F Tag31F_InterestPeriod_B
      {
        get
        {
          return this.InterestPeriod_B_31F;
        }
      }

      [Description("ReceiversParticipation_B_33B")]
      public Tag33B ReceiversParticipation_B_33B
      {
        get
        {
          return new Tag33B((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U0086);
        }
      }

      [Description("ReceiversParticipation_B_33B")]
      public Tag33B Tag33B_ReceiversParticipation_B
      {
        get
        {
          return this.ReceiversParticipation_B_33B;
        }
      }

      [Description("Exchange Rate")]
      public MT644.SequenceBClass.Tag36 ExchangeRate_B_36
      {
        get
        {
          return new MT644.SequenceBClass.Tag36((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U0089);
        }
      }

      [Description("Exchange Rate")]
      public MT644.SequenceBClass.Tag36 Tag36_ExchangeRate_B
      {
        get
        {
          return this.ExchangeRate_B_36;
        }
      }

      [Description("Basis Rate")]
      public MT644.SequenceBClass.Tag37G BasisRate_B_37G
      {
        get
        {
          return new MT644.SequenceBClass.Tag37G((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U008B);
        }
      }

      [Description("Basis Rate")]
      public MT644.SequenceBClass.Tag37G Tag37G_BasisRate_B
      {
        get
        {
          return this.BasisRate_B_37G;
        }
      }

      [Description("Interest Margin")]
      public Tag37M InterestMargin_B_37M
      {
        get
        {
          return new Tag37M((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U008D);
        }
      }

      [Description("Interest Margin")]
      public Tag37M Tag37M_InterestMargin_B
      {
        get
        {
          return this.InterestMargin_B_37M;
        }
      }

      [Description("Reserve Interest")]
      public Tag37R ReserveInterest_B_37R
      {
        get
        {
          return new Tag37R((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U008F);
        }
      }

      [Description("Reserve Interest")]
      public Tag37R Tag37R_ReserveInterest_B
      {
        get
        {
          return this.ReserveInterest_B_37R;
        }
      }

      [Description("Total Interest Rate")]
      public Tag37A TotalInterestRate_B_37A
      {
        get
        {
          return new Tag37A((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U0092);
        }
      }

      [Description("Total Interest Rate")]
      public Tag37A Tag37A_TotalInterestRate_B
      {
        get
        {
          return this.TotalInterestRate_B_37A;
        }
      }

      [Description("Total Interest Rate")]
      public Tag37B TotalInterestRate_B_37B
      {
        get
        {
          return new Tag37B((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U0098);
        }
      }

      [Description("Total Interest Rate")]
      public Tag37B Tag37B_TotalInterestRate_B
      {
        get
        {
          return this.TotalInterestRate_B_37B;
        }
      }

      [Description("Total Interest Rate")]
      public Tag37C TotalInterestRate_B_37C
      {
        get
        {
          return new Tag37C((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U009E);
        }
      }

      [Description("Total Interest Rate")]
      public Tag37C Tag37C_TotalInterestRate_B
      {
        get
        {
          return this.TotalInterestRate_B_37C;
        }
      }

      [Description("Total Interest Rate")]
      public Tag37D TotalInterestRate_B_37D
      {
        get
        {
          return new Tag37D((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U0005U0002);
        }
      }

      [Description("Total Interest Rate")]
      public Tag37D Tag37D_TotalInterestRate_B
      {
        get
        {
          return this.TotalInterestRate_B_37D;
        }
      }

      [Description("Total Interest Rate")]
      public Tag37E TotalInterestRate_B_37E
      {
        get
        {
          return new Tag37E((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U0010U0002);
        }
      }

      [Description("Total Interest Rate")]
      public Tag37E Tag37E_TotalInterestRate_B
      {
        get
        {
          return this.TotalInterestRate_B_37E;
        }
      }

      [Description("Total Interest Rate")]
      public Tag37F TotalInterestRate_B_37F
      {
        get
        {
          return new Tag37F((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U0016U0002);
        }
      }

      [Description("Total Interest Rate")]
      public Tag37F Tag37F_TotalInterestRate_B
      {
        get
        {
          return this.TotalInterestRate_B_37F;
        }
      }

      [Description("Differential Amount")]
      public Tag34P DifferentialAmount_B_34P
      {
        get
        {
          return new Tag34P((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U001DU0002);
        }
      }

      [Description("Differential Amount")]
      public Tag34P Tag34P_DifferentialAmount_B
      {
        get
        {
          return this.DifferentialAmount_B_34P;
        }
      }

      [Description("Differential Amount")]
      public Tag34R DifferentialAmount_B_34R
      {
        get
        {
          return new Tag34R((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U0080U0002);
        }
      }

      [Description("Differential Amount")]
      public Tag34R Tag34R_DifferentialAmount_B
      {
        get
        {
          return this.DifferentialAmount_B_34R;
        }
      }

      [Description("Account With Institution")]
      public Tag57A AccountWithInstitution_B_57A
      {
        get
        {
          return new Tag57A((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U0086U0002);
        }
      }

      [Description("Account With Institution")]
      public Tag57A Tag57A_AccountWithInstitution_B
      {
        get
        {
          return this.AccountWithInstitution_B_57A;
        }
      }

      [Description("Account With Institution")]
      public Tag57B AccountWithInstitution_B_57B
      {
        get
        {
          return new Tag57B((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U0089U0002);
        }
      }

      [Description("Account With Institution")]
      public Tag57B Tag57B_AccountWithInstitution_B
      {
        get
        {
          return this.AccountWithInstitution_B_57B;
        }
      }

      [Description("Account With Institution")]
      public MT644.SequenceBClass.Tag57D AccountWithInstitution_B_57D
      {
        get
        {
          return new MT644.SequenceBClass.Tag57D((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U008CU0002);
        }
      }

      [Description("Account With Institution")]
      public MT644.SequenceBClass.Tag57D Tag57D_AccountWithInstitution_B
      {
        get
        {
          return this.AccountWithInstitution_B_57D;
        }
      }

      [Description("Sender To Receiver Information")]
      public Tag72 SenderToRecieverInformation_B_72
      {
        get
        {
          return new Tag72((SwiftElement) this, 0, (SwiftDefinitionElement) MT644.U008FU0002);
        }
      }

      [Description("Sender To Receiver Information")]
      public Tag72 Tag72_SenderToRecieverInformation_B
      {
        get
        {
          return this.SenderToRecieverInformation_B_72;
        }
      }

      internal SequenceBClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public class Tag31F : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("31F", value);
          }
        }

        internal Tag31F(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class Tag36 : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("36", value);
          }
        }

        internal Tag36(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class Tag37G : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("37G", value);
          }
        }

        internal Tag37G(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class Tag57D : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("57D", value);
          }
        }

        internal Tag57D(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }
    }
  }
}
